package interview.java.q2.internal;

import java.nio.charset.StandardCharsets;
import java.util.Scanner;

public class QuestionInputReader {

  public static QuestionInputReader create() {
    return new QuestionInputReader(new Scanner(System.in, StandardCharsets.UTF_8.name()));
  }

  public QuestionInputReader(Scanner in) {
    _in = in;
  }

  public String read() {
    System.out.println("输入：");
    return _in.next();
  }

  private final Scanner _in;
}
